package com.mybatis.mp.scenery.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author baiye
 * @since 2020-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TResource对象", description="")
public class TResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "景点id")
    private Integer sceneryId;

    @ApiModelProperty(value = "携程资源id")
    private Integer resourceId;

    @ApiModelProperty(value = "资源名称")
    private String name;

    @ApiModelProperty(value = "市场价 单位分")
    private Integer marketPrice;

    @ApiModelProperty(value = "分销价 单位分")
    private Integer price;

    @ApiModelProperty(value = "携程价 单位分")
    private Integer ctripPrice;

    @ApiModelProperty(value = "最早可预订日期")
    private String firstBookingDate;

    @ApiModelProperty(value = "最小购买数量")
    private Integer minQuantity;

    @ApiModelProperty(value = "最大购买数量")
    private Integer maxQuantity;

    @ApiModelProperty(value = "票务类型  SceneryConst")
    private Integer ticketType;

    @ApiModelProperty(value = "兑换方式 ，有效证件。SceneryConst")
    private Integer exchangeMode;

    @ApiModelProperty(value = "提前订购天数")
    private Integer advanceBookingDays;

    @ApiModelProperty(value = "提前订购时间")
    private String advanceBookingTime;

    @ApiModelProperty(value = "类型 SceneryConst")
    private Integer categoryId;

    @ApiModelProperty(value = "适用人群 SceneryConst")
    private String peopleGroup;

    @ApiModelProperty(value = "单位人数（人/份）")
    private Integer unitQuantity;

    @ApiModelProperty(value = "是否限购")
    private Boolean isBookingLimit;

    @ApiModelProperty(value = "退订类型 SceneryConst")
    private Integer refundNewType;

    @ApiModelProperty(value = "是否特惠票")
    private Integer isPreferential;

    @ApiModelProperty(value = "是否单独售卖")
    private Integer isSaleAlone;

    @ApiModelProperty(value = "出行人信息模板ID")
    private Integer customerInfoTemplateId;

    @ApiModelProperty(value = "门票附加信息")
    private String resourceInfo;

    @ApiModelProperty(value = "状态 SceneryConst")
    private Integer status;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private LocalDateTime deletedAt;


}
